package com.system.api.setting.entity.po;

import com.system.common.enums.IconSourceEnum;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import lombok.experimental.Accessors;
import org.yang.common.core.annotation.Chinese;
import org.yang.database.orm.entity.BaseModel;

import static com.system.common.constant.MessageConstant.*;


/**
 * 图标实体
 * @author: lslands
 * @version: 1.0
 * @create: 2024/5/15
 * @description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class SysIcon extends BaseModel {




  /**
   * 图标名称
   * @mock 笑脸
   * @required
   */
  @NotBlank(message = ICON_NAME_EMPTY)
  private String name;

  /**
   * 图标来源 (#icon/阿里巴巴l;#/字节)
   * @mock #icon-
   * @required
   */
  private IconSourceEnum source;

  /**
   * 图标编码
   * @mock xiaolian
   * @required
   */
  @Chinese
  @NotBlank(message = ICON_CODE_EMPTY)
  private String code;

  /**
   * 类型
   * @mock 1
   */
  private String type;

  public SysIcon(Long id, Integer enabled, Integer revision) {
    super(id, enabled, revision);
  }
}